#include "Observer.hpp"

int main() {
  TobeCheckSubject tbcsub;
  MoreClearObserver obs1;
  MoreClearObserver2 obs2;
  std::cout << "Using obs1 and obs2 Now" << std::endl;
  tbcsub.Attach(&obs1);
  tbcsub.Attach(&obs2);

  tbcsub.Notify(); // when Notify, auto call Update()

  std::cout << "Using obs1 Now" << std::endl;
  tbcsub.Detach(&obs1);
  tbcsub.Notify();

#ifdef _WIN32
  system("pause");
#endif
  return 0;
}
